package com.example.mardan_demo1.mapper;

import com.example.mardan_demo1.pojo.hzp.ProcessLogs;
import com.example.mardan_demo1.pojo.qx.QxInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author:买尔旦江 ×@CreateTime: 2025-01-03
 * @Description: 器械mapper
 * @Version: 1.0
 */
@Mapper
public interface QxMapper {
    void add(QxInfo qx);

    QxInfo findQxInfoById(Integer id);

    void updateQxInfoById(QxInfo qx);

    List<QxInfo> qxGetOwnList(Integer userId, String yangPinMingCheng);

    QxInfo qxUserGetOwnQxInfoByQxId(Integer qxId, Integer userId);

    void qxDeleteById(Integer qxId);

    void deleteProcessLogsByYangPinId(Integer qxId);

    List<QxInfo> adminQxGetListByYangPinMingCheng(String yangPinMingCheng);

    List<ProcessLogs> getQxProcessLogsById(Integer qxId);

    QxInfo selectByIdAndCreator(Integer qxId, Integer userIdByToken);

    void addProcessLogs(ProcessLogs log);
}
